package com.example.renyang.happysell.MyUntil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import infClass.Food;

/**
 * Created by ZX on 2016/4/23.
 */
public class Car {
   public static Map<String,String> carmap=new HashMap<String,String>();
    public static List<Food> carlist=new ArrayList<Food>();
    public static void addcarlist(Food food){
        carlist.add(food);
    }
    public static void addcarmap(String name,String count){
        carmap.put(name,count);
    }
    public Car(){
        carmap.put("Samcoff", "11");
        Food food=new Food();
        food.setFname("Samcoff");
        food.setPrice("12");
        food.setStorename("江南米线店1");

        carlist.add(food);
    }
    public static Map<String, String> getCarmap() {
        return carmap;
    }

    public static void setCarmap(Map<String, String> carmap) {
        Car.carmap = carmap;
    }

    public static List<Food> getCarlist() {
        return carlist;
    }
    public static void appendCarlist(List<Food> carlist){
        Car.carlist.addAll(carlist);
    }
    public static void setCarlist(List<Food> carlist) {
        Car.carlist = carlist;
    }
}
